import request from '@/utils/request.js'

export const newsListService = (params) => {
    return request.get('/news',{params:params})
}
export const newsCategoryListService = () => {
    return request.get('/category')
}
export const newsDeleteService = (id) => {
    return request.delete('/news?id='+id);
}
export const newsAddService = (newsData) => {
    return request.post('/news', newsData)
}